package tech.aistar.corejava.day05;

/**
 * @author success
 * @version 1.0
 * @description:本类用来演示:班级实体类
 * @date 2019/7/19 0019
 */
public class Clazz {
    //定义属性
    private int id;

    private String clazzName;

    private int capacity;//容量

    public Clazz() {
    }

    public Clazz(int id, String clazzName, int capacity) {
        this.id = id;
        this.clazzName = clazzName;
        this.capacity = capacity;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getClazzName() {
        return clazzName;
    }

    public void setClazzName(String clazzName) {
        this.clazzName = clazzName;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Clazz_Success{");
        sb.append("id=").append(id);
        sb.append(", clazzName='").append(clazzName).append('\'');
        sb.append(", capacity=").append(capacity);
        sb.append('}');
        return sb.toString();
    }
}
